from conftest import login_token5
import requests,pytest

class Test_yueche:
    # 加入车圈专区
    def test_yuece_01(self,login_token5):
        userId,token=login_token5
        url='http://10.59.9.18/car-circle/circle/verify/v1/joinCircleColumn'
        headers={
            'userId':str(userId),
            'token':str(token)
        }
        data={
            'brandId':2,
            'categoryId':10
        }
        r=requests.post(url=url,headers=headers,json=data)
        r_json=r.json()
        print(r_json)

    # 查询加入的车圈专区
    def test_yuece_02(self,login_token5):
        userId,token=login_token5
        url='http://10.59.9.18/car-circle/circle/verify/v1/findMyColumnList'
        headers={
            'userId':str(userId),
            'token':str(token)
        }

        r=requests.get(url=url,headers=headers)
        r_json=r.json()
        print(r_json)

